
# sfz='13013220020619411'



def create_sfz18(sfz17):
    coeff = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1]
    suffix = ['1', '0', 'x', '9', '8', '7', '6', '5', '4', '3', '2']
    sum = 0
    for i in range(0, len(sfz17)):
        sum += coeff[i] * (int(sfz17[i]))

    sum %= 11
    return sfz17+suffix[sum]
def create_sfz14_16(sfz13,sex='男'):
    ls=[]
    for i in range(1000):
        #print(i)
        if(sex =='男') and ( i%2==1):
            ls.append(sfz13+str(i))
        elif (sex=='女') and (i%2==0):
            ls.append(sfz13+str(i))
    return ls


#print(create_sfz18('13013220020619411'))
ls=create_sfz14_16('13013220020619')
for i in ls:

    print(create_sfz18(i))